package com.mooneros.study.designpattern.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 学习类
 * @author mac
 */
@RestController
public class StudyController {

  @Autowired
  private TestStrategyService testStrategyService;

    @RequestMapping(value = "study")
    public String getStudy(@RequestParam(value = "studyType", required = false) String studyType) {
        testStrategyService.handleRequest(studyType);
        return "";
    }
}
